import { createRouter, createWebHistory } from 'vue-router';

const routes = [{ path: '/test', component: () => import('../components/HelloWorld.vue') }];

const router = createRouter({
    history: createWebHistory(),
    routes
});

// router.beforeEach((to, from, next) => {
//   if (!sessionStorage.getItem("token")) {
//     if (to.name == "login") {
//       next();
//     } else {
//       next("/smart-e/admin/login");
//     }
//   } else {
//     next();
//   }
// });

export default router;
